<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>宫廷之家</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link href="../assets/css/bootstrap.css" rel="stylesheet">
    <link href="../assets/css/bootstrap-responsive.css" rel="stylesheet">
    <link href="../assets/css/round.css" rel="stylesheet">
    <link href="../assets/css/si.css" rel="stylesheet">
    <style>

    /* GLOBAL STYLES
    -------------------------------------------------- */
    /* Padding below the footer and lighter body text */

    body {
      /*padding-bottom: 40px;*/
      color: #5a5a5a;
    }



    /* CUSTOMIZE THE NAVBAR
    -------------------------------------------------- */

    /* Special class on .container surrounding .navbar, used for positioning it into place. */
    .navbar-wrapper {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      z-index: 10;
      margin-top: 20px;
      margin-bottom: -90px; /* Negative margin to pull up carousel. 90px is roughly margins and height of navbar. */
    }
    .navbar-wrapper .navbar {

    }

    /* Remove border and change up box shadow for more contrast */
    .navbar .navbar-inner {
      border: 0;
      -webkit-box-shadow: 0 2px 10px rgba(0,0,0,.25);
         -moz-box-shadow: 0 2px 10px rgba(0,0,0,.25);
              box-shadow: 0 2px 10px rgba(0,0,0,.25);
    }

    /* Downsize the brand/project name a bit */
    .navbar .brand {
      padding: 14px 20px 16px; /* Increase vertical padding to match navbar links */
      font-size: 16px;
      font-weight: bold;
      text-shadow: 0 -1px 0 rgba(0,0,0,.5);
    }

    /* Navbar links: increase padding for taller navbar */
    .navbar .nav > li > a {
      padding: 15px 20px;
    }

    /* Offset the responsive button for proper vertical alignment */
    .navbar .btn-navbar {
      margin-top: 10px;
    }



    /* CUSTOMIZE THE CAROUSEL
    -------------------------------------------------- */

    /* Carousel base class */
    .carousel {
      /*margin-bottom: 60px;*/
        margin-bottom: 0px;
    }

    .carousel .container {
      position: relative;
      z-index: 9;
    }

    .carousel-control {
      height: 80px;
      margin-top: 0;
      font-size: 120px;
      text-shadow: 0 1px 1px rgba(0,0,0,.4);
      background-color: transparent;
      border: 0;
      z-index: 10;
    }

    .carousel .item {
      height: 600px;
      background-color: #cccccc;

    }
    .carousel img {
      position: absolute;
      top: 0;
      left: 0;
      min-width: 100%;
      height: 600px;
    }

    .carousel-caption {
      background-color: transparent;
      position: static;
      max-width: 550px;
      padding: 0 20px;
      margin-top: 200px;
    }
    .carousel-caption h1,
    .carousel-caption .lead {
      margin: 0;
      line-height: 1.25;
      color: #fff;
      text-shadow: 0 1px 1px rgba(0,0,0,.4);
    }
    .carousel-caption .btn {
      margin-top: 10px;
    }



    /* MARKETING CONTENT
    -------------------------------------------------- */

    /* Center align the text within the three columns below the carousel */
    .marketing .span4 {
      text-align: center;
    }
    .marketing h2 {
      font-weight: normal;
    }
    .marketing .span4 p {
      margin-left: 10px;
      margin-right: 10px;
    }


    /* Featurettes
    ------------------------- */

    .featurette-divider {
      margin: 80px 0; /* Space out the Bootstrap <hr> more */
    }
    .featurette {
      padding-top: 120px; /* Vertically center images part 1: add padding above and below text. */
      overflow: hidden; /* Vertically center images part 2: clear their floats. */
    }
    .featurette-image {
      margin-top: -120px; /* Vertically center images part 3: negative margin up the image the same amount of the padding to center it. */
    }

    /* Give some space on the sides of the floated elements so text doesn't run right into it. */
    .featurette-image.pull-left {
      margin-right: 40px;
    }
    .featurette-image.pull-right {
      margin-left: 40px;
    }

    /* Thin out the marketing headings */
    .featurette-heading {
      font-size: 50px;
      font-weight: 300;
      line-height: 1;
      letter-spacing: -1px;
    }



    /* RESPONSIVE CSS
    -------------------------------------------------- */

    @media (max-width: 979px) {

      .container.navbar-wrapper {
        margin-bottom: 0;
        width: auto;
      }
      .navbar-inner {
        border-radius: 0;
        margin: -20px 0;
      }

      .carousel .item {
        height: 500px;
      }
      .carousel img {
        width: auto;
        height: 500px;
      }

      .featurette {
        height: auto;
        padding: 0;
      }
      .featurette-image.pull-left,
      .featurette-image.pull-right {
        display: block;
        float: none;
        max-width: 40%;
        margin: 0 auto 20px;
      }
    }


    @media (max-width: 767px) {

      .navbar-inner {
        margin: -20px;
      }

      .carousel {
        margin-left: -20px;
        margin-right: -20px;
      }
      .carousel .container {

      }
      .carousel .item {
        height: 300px;
      }
      .carousel img {
        height: 300px;
      }
      .carousel-caption {
        width: 65%;
        padding: 0 70px;
        margin-top: 100px;
      }
      .carousel-caption h1 {
        font-size: 30px;
      }
      .carousel-caption .lead,
      .carousel-caption .btn {
        font-size: 18px;
      }

      .marketing .span4 + .span4 {
        margin-top: 40px;
      }

      .featurette-heading {
        font-size: 30px;
      }
      .featurette .lead {
        font-size: 18px;
        line-height: 1.5;
      }

    }
    </style>

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="../assets/js/html5shiv.js"></script>
    <![endif]-->

    <!-- Fav and touch icons -->
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
      <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
                    <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
                                   <link rel="shortcut icon" href="../assets/ico/favicon.png">
  </head>

  <body>

  
    <div class="si">
        <img src="../assets/img/p_01.jpg"  />
        
		<a id="pinpai" style="margin-top:1px;">
			<img src="../assets/img/p_02.jpg" />
		</a>
        
    </div>
	<div class="bg_bar"><div class="si"><img src="../assets/img/p_03.jpg" /></div></div>
	<div class="si">
	<a id="product" class="po"></a>
	<img src="../assets/img/p_04.jpg" />
	<img src="../assets/img/p_05.jpg" />
	<img src="../assets/img/p_06.jpg" />
	<img src="../assets/img/p_07.jpg" />
	</div>
	<div class="bg_bar"><div class="si"><img src="../assets/img/p_08.jpg" /></div></div>
	<div class="si">
	<a id="time"></a>
	<img src="../assets/img/p_09.jpg" />
	<img src="../assets/img/p_10.jpg" />
	<img src="../assets/img/p_11.jpg" />
	<img src="../assets/img/p_12.jpg" />
	</div>
	<div class="bg_bar1"><div class="si"><img src="../assets/img/p_13.jpg" /></div></div>
	<div class="si">
	<a id="beautiful"></a>
	<img src="../assets/img/p_14.jpg" />
	</div>
	<div class="bg_bar15"><div class="si"><img src="../assets/img/p_15.jpg" /></div></div>
	<div class="si">
	<a id="news">
	<img src="../assets/img/p_16.jpg" /></a>
	<a id="home">
	<img src="../assets/img/p_17.jpg" /></a>
	
		<a id="contact">
		<img src="../assets/img/p_18.jpg" /></a>
    <img src="../assets/img/zai_01.jpg" >


    <div class="msg">

        <div class="container">
            <div class="span6">

                <form class="form-horizontal" action="/gt/plus/diy.php" enctype="multipart/form-data" method="post">
                    <input type="hidden" name="action" value="post">
                    <input type="hidden" name="diyid" value="1">
                    <input type="hidden" name="do" value="2">
                    <!--<table width="560" border="1">-->
                    <!--<tr><td rowspan="3">选择产品:</td><td><input type="radio" name="pro" value="亮颜青春宝活性精华面膜" checked="" />亮颜青春宝活性精华面膜 </td><td>320元/盒</td><td>数量 :<input type="text" name="amount"/></td></tr>-->
                    <!--<tr><td><input type="radio" name="pro" value="驻颜微塑形活性精华面膜"  />驻颜微塑形活性精华面膜</td><td>420元/盒</td><td>数量 :<input type="text" name="amount"/></td></tr>-->
                    <!--<tr><td><input type="radio" name="pro" value="童颜回春活性精华面膜"  />童颜回春活性精华面膜 </td><td>490元/盒</td><td>数量 :<input type="text" name="amount"/></td></tr>-->
                    <!--</table>-->
                    <table width="560" border="1" style="margin: 15px 0;">
                        <tr><td rowspan="3">选择产品:</td><td><input type="radio" name="pro" value="亮颜青春宝活性精华面膜" checked="" />亮颜青春宝活性精华面膜 </td><td>320元/盒</td></tr>
                        <tr><td><input type="radio" name="pro" value="驻颜微塑形活性精华面膜"  />驻颜微塑形活性精华面膜</td><td>420元/盒</td></tr>
                        <tr><td><input type="radio" name="pro" value="童颜回春活性精华面膜"  />童颜回春活性精华面膜 </td><td>490元/盒</td></tr>
                    </table>
                    <div class="control-group">
                        <label class="control-label">数量:</label>

                        <div class="controls">
                            <input id="min" name="" type="button" value="-" />
                            <input type="text" name="amount" id="text_box" value="1" >
                            <input id="add" name="" type="button" value="+" />
                        </div>
                        <!--<input tpye="text" name="amount" id="text_box" value="4" />-->

                    </div>
                    <div class="control-group">
                        <label class="control-label" for="name">姓名:</label>
                        <div class="controls">
                            <input type="text" name="uname" >
                        </div>
                        <!--<label class="control-label">姓名:</label>-->
                        <!--<div class="controls"> <input tpye="text" name="uname"/></div>-->
                    </div>
                    <div class="control-group">
                        <label class="control-label">性别:</label>
                        <input type="radio" name="sex" value="男" checked="checked" />男
                        <input type="radio" name="sex" value="女" />女
                    </div>
                    <div class="control-group">
                        <label class="control-label">地址:</label>
                        <div class="controls">
                            <input type="text" name="address" >
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">手机:</label>
                        <div class="controls">
                            <input type="text" name="tel" >
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">留言:</label>
                        <textarea name="msg"></textarea>
                    </div>
                    <input type="hidden" name="dede_fields" value="pro,radio;amount,int;uname,text;sex,radio;address,text;tel,text;msg,multitext">
                    <input type="hidden" name="dede_fieldshash" value="27f451cdb23ca7d2ea438e946aff08e9">
                    <div align="center" style="height:30px;padding-top:10px;">
                        <button type="submit" name="submit"  class="btn">提 交</button>
                        <!--<input type="submit" name="submit" value="提 交" class="coolbg">-->
                        &nbsp;
                        <!--<input type="reset" name="reset" value="重 置" class="coolbg">-->
                    </div>
                </form>
            </div>
            <div class="span6">
                <h3 class="yellow">发货通知</h3>
                <div class="msbox" >
				<div>&nbsp;</div>
                    <div class="msbox-1" id="s2">
					
			<ul style="margin-top: 0px;margin-right:20px;">
            <li>
                
                    jquery Xslider 插件焦点图片特效图片淡隐淡现、图片上下滚动、图片左右滚动、选项卡
                
            </li>
            <li>
                
                    jquery 文字连续滚动 节奏感十足的齿轮式滚动图片展示与文字内容特效展示
                
            </li>
            <li>
                
                    jquery cycle 循环幻灯片插件多功能幻灯片插件支持多种幻灯片特效
                
            </li>
            <li>
                
                    jquery轻量级进度条 progressbar 带动画显示的进度过程的jquery进度条特效
                
            </li>
            <li>
                
                    jquery菜单特效 鼠标滑过菜单区域图标和文本类似flash动画酷炫移动展示
                
            </li>
            <li>
                
                    jquery 图片切换 自动切换显示隐藏show/hide带左右按钮与分页索引按钮控制图片自动切换显示隐藏show/hide
                
            </li>
            <li>
                
                    jquery图片特效 slide banner焦点图片切换图片上下翻滚、图片左右翻滚、图片淡隐淡现3种图片滚动特效
                
            </li>
            <li>
                
                    javascript jscolor colorpicker js颜色选择器插件10多种调用颜色方法与取值
                
            </li>
			<li>
                
                    jquery Xslider 插件焦点图片特效图片淡隐淡现、图片上下滚动、图片左右滚动、选项卡
                
            </li>
            <li>
                
                    jquery 文字连续滚动 节奏感十足的齿轮式滚动图片展示与文字内容特效展示
                
            </li>
            <li>
                
                    jquery cycle 循环幻灯片插件多功能幻灯片插件支持多种幻灯片特效
                
            </li>
            <li>
                
                    jquery轻量级进度条 progressbar 带动画显示的进度过程的jquery进度条特效
                
            </li>
            <li>
                
                    jquery菜单特效 鼠标滑过菜单区域图标和文本类似flash动画酷炫移动展示
                
            </li>
            <li>
                
                    jquery 图片切换 自动切换显示隐藏show/hide带左右按钮与分页索引按钮控制图片自动切换显示隐藏show/hide
                
            </li>
            <li>
                
                    jquery图片特效 slide banner焦点图片切换图片上下翻滚、图片左右翻滚、图片淡隐淡现3种图片滚动特效
                
            </li>
            <li>
                
                    javascript jscolor colorpicker js颜色选择器插件10多种调用颜色方法与取值
                
            </li>
			<li>
                
                    jquery Xslider 插件焦点图片特效图片淡隐淡现、图片上下滚动、图片左右滚动、选项卡
                
            </li>
            <li>
                
                    jquery 文字连续滚动 节奏感十足的齿轮式滚动图片展示与文字内容特效展示
                
            </li>
            <li>
                
                    jquery cycle 循环幻灯片插件多功能幻灯片插件支持多种幻灯片特效
                
            </li>
            <li>
                
                    jquery轻量级进度条 progressbar 带动画显示的进度过程的jquery进度条特效
                
            </li>
            <li>
                
                    jquery菜单特效 鼠标滑过菜单区域图标和文本类似flash动画酷炫移动展示
                
            </li>
            <li>
                
                    jquery 图片切换 自动切换显示隐藏show/hide带左右按钮与分页索引按钮控制图片自动切换显示隐藏show/hide
                
            </li>
            <li>
                
                    jquery图片特效 slide banner焦点图片切换图片上下翻滚、图片左右翻滚、图片淡隐淡现3种图片滚动特效
                
            </li>
            <li>
                
                    javascript jscolor colorpicker js颜色选择器插件10多种调用颜色方法与取值
                
            </li>
			<li>
                
                    jquery Xslider 插件焦点图片特效图片淡隐淡现、图片上下滚动、图片左右滚动、选项卡
                
            </li>
            <li>
                
                    jquery 文字连续滚动 节奏感十足的齿轮式滚动图片展示与文字内容特效展示
                
            </li>
            <li>
                
                    jquery cycle 循环幻灯片插件多功能幻灯片插件支持多种幻灯片特效
                
            </li>
            <li>
                
                    jquery轻量级进度条 progressbar 带动画显示的进度过程的jquery进度条特效
                
            </li>
            <li>
                
                    jquery菜单特效 鼠标滑过菜单区域图标和文本类似flash动画酷炫移动展示
                
            </li>
            <li>
                
                    jquery 图片切换 自动切换显示隐藏show/hide带左右按钮与分页索引按钮控制图片自动切换显示隐藏show/hide
                
            </li>
            <li>
                
                    jquery图片特效 slide banner焦点图片切换图片上下翻滚、图片左右翻滚、图片淡隐淡现3种图片滚动特效
                
            </li>
            <li>
                
                    javascript jscolor colorpicker js颜色选择器插件10多种调用颜色方法与取值
                
            </li>
			<li>
                
                    jquery Xslider 插件焦点图片特效图片淡隐淡现、图片上下滚动、图片左右滚动、选项卡
                
            </li>
            <li>
                
                    jquery 文字连续滚动 节奏感十足的齿轮式滚动图片展示与文字内容特效展示
                
            </li>
            <li>
                
                    jquery cycle 循环幻灯片插件多功能幻灯片插件支持多种幻灯片特效
                
            </li>
            <li>
                
                    jquery轻量级进度条 progressbar 带动画显示的进度过程的jquery进度条特效
                
            </li>
            <li>
                
                    jquery菜单特效 鼠标滑过菜单区域图标和文本类似flash动画酷炫移动展示
                
            </li>
            <li>
                
                    jquery 图片切换 自动切换显示隐藏show/hide带左右按钮与分页索引按钮控制图片自动切换显示隐藏show/hide
                
            </li>
            <li>
                
                    jquery图片特效 slide banner焦点图片切换图片上下翻滚、图片左右翻滚、图片淡隐淡现3种图片滚动特效
                
            </li>
            <li>
                
                    javascript jscolor colorpicker js颜色选择器插件10多种调用颜色方法与取值
                
            </li>
			<li>
                
                    jquery Xslider 插件焦点图片特效图片淡隐淡现、图片上下滚动、图片左右滚动、选项卡
                
            </li>
            <li>
                
                    jquery 文字连续滚动 节奏感十足的齿轮式滚动图片展示与文字内容特效展示
                
            </li>
            <li>
                
                    jquery cycle 循环幻灯片插件多功能幻灯片插件支持多种幻灯片特效
                
            </li>
            <li>
                
                    jquery轻量级进度条 progressbar 带动画显示的进度过程的jquery进度条特效
                
            </li>
            <li>
                
                    jquery菜单特效 鼠标滑过菜单区域图标和文本类似flash动画酷炫移动展示
                
            </li>
            <li>
                
                    jquery 图片切换 自动切换显示隐藏show/hide带左右按钮与分页索引按钮控制图片自动切换显示隐藏show/hide
                
            </li>
            <li>
                
                    jquery图片特效 slide banner焦点图片切换图片上下翻滚、图片左右翻滚、图片淡隐淡现3种图片滚动特效
                
            </li>
            <li>
                
                    javascript jscolor colorpicker js颜色选择器插件10多种调用颜色方法与取值
                
            </li>
			
        </ul>
        
					
					
					
                       <!--  <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p>
                        <p>订单号：1 姓名：王方，您的物品发出请注意查收</p> -->
                    </div>
                </div>

            </div>
        </div>
	<!--<img src="../assets/img/p_19.jpg" />-->
	<img src="../assets/img/p_20.jpg" />
	</div>
<div class="sidebar" style="display: block;">
	<ul>                              
    	<li data-position="0" class="" onclick="glide(pinpai, 3)">品牌故事</li>
		<li data-position="1" class="" onclick="glide(product, 3)" >产品展示</li>
		<li data-position="2" class="" onclick="glide(time, 0.001)">时尚前沿</li>
		<li data-position="3" class="" onclick="glide(beautiful, 3)">美丽论坛</li>
		<li data-position="4" class="" onclick="glide(news, 3)">活动资讯</li>
		<li data-position="5" class="" onclick="glide(home, 3)">宫廷之家</li>
		<li data-position="6" class="" onclick="glide(contact, 3)">联系我们</li>
		<li class="nobottom" data-position="7">合作媒体</li>
        <li id="sidebar_last" data-position="5" class=""><span>日程表</span></li>
    </ul> 
</div>



	
   



    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="../assets/js/jquery.js"></script>
    <script src="../assets/js/bootstrap-transition.js"></script>
    <script src="../assets/js/bootstrap-alert.js"></script>
    <script src="../assets/js/bootstrap-modal.js"></script>
    <script src="../assets/js/bootstrap-dropdown.js"></script>
    <script src="../assets/js/bootstrap-scrollspy.js"></script>
    <script src="../assets/js/bootstrap-tab.js"></script>
    <script src="../assets/js/bootstrap-tooltip.js"></script>
    <script src="../assets/js/bootstrap-popover.js"></script>
    <script src="../assets/js/bootstrap-button.js"></script>
    <script src="../assets/js/bootstrap-collapse.js"></script>
    <script src="../assets/js/bootstrap-carousel.js"></script>
    <script src="../assets/js/bootstrap-typeahead.js"></script>
    <script src="../assets/js/jquery.roundabout-1.0.min.js"></script>
    <script src="../assets/js/jquery.easing.1.3.js"></script>
    <script>
      !function ($) {
        $(function(){
          // carousel demo
          $('#myCarousel').carousel()
        })
      }(window.jQuery)
    </script>
    <script type="text/javascript">
        $(document).ready(function() {
            $('.mid-con2 ul').roundabout({
                easing: 'easeOutInCirc',
                duration: 600
            });
        });
    </script>
	<!-- 侧边栏 end -->
	<script type="text/javascript">

(function(){
 jQuery(function(){
	     var d = 0;
    
   
    jQuery(".sidebar li").each(function(e, f) {
		jQuery(this).hover(function(){
			jQuery(this).addClass('hover');
			},function(){
		    jQuery(this).removeClass('hover');
		});
        jQuery(this).click(function() {
            var g = jQuery(this).attr('data-position');
            jQuery(".sidebar li").removeClass("current");
            jQuery(".sidebar li").eq(g).addClass("current");
            jQuery("html, body").animate({
                scrollTop: jQuery(".scpart").eq(g).offset().top - 10
            },
            200)
        })
    });

  })	
})()
</script>

<script>
// 转换为数字 
function intprase(v){
    v = parseInt(v);
    return isNaN(v) ? 0 : v;
}

// 获取元素信息 
function getInfo(e){
    var l = 0;
    var t = 0;
    var w = intprase(e.style.width);
    var h = intprase(e.style.height);
    var wb = e.offsetWidth;
    var hb = e.offsetHeight;
    while (e.offsetParent) {
        l += e.offsetLeft + (e.currentStyle ? intprase(e.currentStyle.borderLeftWidth) : 0);
        t += e.offsetTop + (e.currentStyle ? intprase(e.currentStyle.borderTopWidth) : 0);
        e = e.offsetParent;
    }
    l += e.offsetLeft + (e.currentStyle ? intprase(e.currentStyle.borderLeftWidth) : 0);
    t += e.offsetTop + (e.currentStyle ? intprase(e.currentStyle.borderTopWidth) : 0);
    return {
        x: l,
        y: t,
        w: w,
        h: h,
        wb: wb,
        hb: hb
    };
}

// 获取滚动条信息 
function getScroll(){
    var t, l, w, h;
    if (document.documentElement && document.documentElement.scrollTop) {
        t = document.documentElement.scrollTop;
        l = document.documentElement.scrollLeft;
        w = document.documentElement.scrollWidth;
        h = document.documentElement.scrollHeight;
    }
    else 
        if (document.body) {
            t = document.body.scrollTop;
            l = document.body.scrollLeft;
            w = document.body.scrollWidth;
            h = document.body.scrollHeight;
        }
    return {
        t: t,
        l: l,
        w: w,
        h: h
    };
}

// 锚点(Anchor)间平滑跳转 
function glide(el, duration){
    if (typeof el != 'object') {
        el = document.getElementById(el);
    }
    if (!el) 
        return;
    var z = this;
    z.el = el;
    z.p = getInfo(el);
    z.s = getScroll();
    z.clear = function(){
        window.clearInterval(z.timer);
        z.timer = null
    };
    z.t = (new Date).getTime();
    z.step = function(){
        var t = (new Date).getTime();
        var p = (t - z.t) / duration;
        if (t >= duration + z.t) {
            z.clear();
            window.setTimeout(function(){
                z.scroll(z.p.y, z.p.x)
            }, 13);
        }
        else {
            st = ((-Math.cos(p * Math.PI) / 2) + 0.5) * (z.p.y - z.s.t) + z.s.t;
            sl = ((-Math.cos(p * Math.PI) / 2) + 0.5) * (z.p.x - z.s.l) + z.s.l;
            z.scroll(st, sl);
        }
    };
    z.scroll = function(t, l){
        window.scrollTo(l, t)
    };
    z.timer = window.setInterval(function(){
        z.step();
    }, 13);
}

</script>

<script>
$(function(){
	//获得文本框对象
	var t = $("#text_box");	
	//数量增加操作
	$("#add").click(function(){		
		t.val(parseInt(t.val())+1)
		if (parseInt(t.val())!=1){
			$('#min').attr('disabled',false);
		}
		setTotal();
	})	
	//数量减少操作
	$("#min").click(function(){
		t.val(parseInt(t.val())-1);
		if (parseInt(t.val())==1){
			$('#min').attr('disabled',true);
		}
		setTotal();
	})
	//计算操作
	function setTotal(){
		$("#total").html((parseInt(t.val())*3.95).toFixed(2));//toFixed()是保留小数点的函数很实用哦
	}	
	//初始化
	setTotal();
})
</script>
<script type="text/javascript">
        //滚动插件
        (function($) {
            $.fn.extend({
                Scroll: function(opt, callback) {
                    //参数初始化
                    if (!opt) var opt = {};
                    var _this = this.eq(0).find("ul:first");
                    var lineH = _this.find("li:first").height(),
                    //获取行高
                    line = opt.line ? parseInt(opt.line, 10) : parseInt(this.height() / lineH, 10),
                    //每次滚动的行数，默认为一屏，即父容器高度
                    speed = opt.speed ? parseInt(opt.speed, 10) : 500,
                    //卷动速度，数值越大，速度越慢（毫秒）
                    timer = opt.timer ? parseInt(opt.timer, 10) : 3000; //滚动的时间间隔（毫秒）
                    if (line == 0) line = 1;
                    var upHeight = 0 - line * lineH;
                    //滚动函数
                    scrollUp = function() {
                        _this.animate({
                            marginTop: upHeight
                        },
                        speed,
                        function() {
                            for (i = 1; i <= line; i++) {
                                _this.find("li:first").appendTo(_this);
                            }
                            _this.css({
                                marginTop: 0
                            });
                        });
                    }
                    //鼠标事件绑定
                    _this.hover(function() {
                        clearInterval(timerID);
                    },
                    function() {
                        timerID = setInterval("scrollUp()", timer);
                    }).mouseout();
                }
            });
        })(jQuery);

        $(document).ready(function() {
            $("#s2").Scroll({
                line: 20,
                speed: 180,
                timer: 4000
            });
        });
    </script>

    <script src="../assets/js/holder/holder.js"></script>
  </body>
</html>
